package com.quarters.serviceImpl;

import com.quarters.bean.RoleQuarters;
import com.quarters.mapper.RoleQuartersMapper;
import com.quarters.service.RoleQuartersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-03
 */
@Service
public class RoleQuartersServiceImpl extends ServiceImpl<RoleQuartersMapper, RoleQuarters> implements RoleQuartersService {

    @Override
    public List<RoleQuarters> selectFlage(Long userId) {
        return baseMapper.selectFlage(userId);
    }

    /**
     * @param openId
     * @return 根据openid查询
     */
    @Override
    public RoleQuarters selectByOpenId(String openId) {
        return baseMapper.selectByOpenId(openId);
    }
}
